<?php 
/**
 * 阳关灿烂新首页
 * @author Haiqin
 *
 */
namespace Home\Controller;
use Think\Controller;
class Homecontroller extends Controller{
	public function index(){
		$this->display();
	}
	
	public function get_vedio_test(){
		//测试用;
		$article = array(
			'title'=>'这是标题',
			'summary' => '这是简介这是简介这是那简介',
			'vediourl' => 'http://img.56class.cn/o_1amsc3ql3h6r13ft12gkegm7rh9.mp4',
		);
		
		_apiReturn(1,'获取成功',$article);
	}
	
	//消费列表
	public function get_xiaofei(){
		$xiaofei = array(
			'id'=> '0299182222',
			'time'=>'2016-01-01 21:10:01',
			'cost'=>'1000元',
			'desc'=> '这里是描述'
		);
		for($i = 0 ; $i < 10 ;$i++){
			$data[] = $xiaofei;
		}
		_apiReturn(1,'获取成功',$data);
	}
}
?>